//
//  ChatManager.m
//  HXDemo
//
//  Created by 李亚军 on 16/11/21.
//  Copyright © 2016年 李亚军. All rights reserved.
//

#import "ChatManager.h"
#import <UIKit/UIKit.h>

static ChatManager *chatManager = nil;
@implementation ChatManager

+ (ChatManager *)shareChatManager {
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        if (chatManager == nil) {
            chatManager = [ChatManager new];
        }
    });
    
    return chatManager;
}


- (UIViewController *)initializeViewControllerWithStoryboardName:(NSString *)storyboardName storyboardID:(NSString *)storyboardID {
    
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];
    
    return [storyboard instantiateViewControllerWithIdentifier:storyboardID];
}




@end
